home *** CD-ROM | disk | FTP | other *** search
/ Tricks of the Mac Game Programming Gurus / TricksOfTheMacGameProgrammingGurus.iso / More Source / C⁄C++ / Marathon Map Viewer / @Source / myDocument.h < prev    next >
Text File  |  1995-06-06  |  1KB  |  41 lines

  1. /*-----------------------------------------------------------------
  2.     Copyright ©1994 Steve Israelson
  3. -----------------------------------------------------------------*/
  4. #pragma once
  5.  
  6. #include <LSingleDoc.h>
  7. #include <LListener.h>
  8. #include <LList.h>
  9. #include "marathonTypes.h"
  10.  
  11. #define editorFileType            'scen'
  12.  
  13.  
  14. class    myDocument : public LSingleDoc , public LListener{
  15. public:
  16.     marathonMap            theMapFile;
  17.     LWindow                **levelWindows;
  18.     
  19.                         myDocument(LCommander *inSuper, FSSpec *inFileSpec);
  20.                         ~myDocument();
  21.                     
  22.     virtual Boolean        IsModified();
  23.     virtual Boolean        AllowSubRemoval(LCommander *inSub);
  24.     
  25.     virtual void        DoAESave(FSSpec &inFileSpec, OSType inFileType);
  26.     virtual void        DoSave();
  27.     virtual void        DoRevert();
  28.     virtual void        DoPrint();
  29.  
  30.     void                DoSaveTo(LFile *oldFile, LFile *newFile);
  31.     void                 readNameChunks(short fileRefNum);
  32.     void                editLevel(short theLevelNum);
  33.     void                readLevel(short theLevelNum);
  34.     void                setNameList(void);
  35.  
  36.     virtual void    ListenToMessage(MessageT inMessage, void *ioParam);
  37.             
  38. protected:
  39.     void                NameNewDoc();
  40.     void                OpenFile(FSSpec &inFileSpec);
  41. };